// import { delete } from "vue/types/umd";
import { get, post, fdelete, put } from "./require";

/**
 *菜单接口
 */
export const menuList = parmas => get("/sys/menu/permList", parmas);
/**
 * api接口统一管理
 */
//获取字典配置数据列表
export const apiAddress = parmas => get("sys/dict/page", parmas);

//添加字典配置
export const apiPostAddress = parmas =>
  post("api/v1/users/my_address/address_edit_before", parmas);

// 修改头像
export const postSetIcon = parmas => post("/sys/tbEmployee/setIcon", parmas);
//
export const getIcon = parmas => get("/sys/tbEmployee/icon", parmas);

//登录接口
export const apiLogin = parmas => post("auto/login", parmas);
// 初始修改默认密码
export const modifyCipher = parmas => post("auto/modifyCipher", parmas);
// 退出登录
export const apiLogout = parmas => post("/auto/logout", parmas);
// 修改密码
export const apiUpdatePassword = parmas =>
  post("/sys/tbEmployee/updatePassword", parmas);
//修改授权密码
export const apiUpdatePasswordT = parmas =>
  post("/sys/tbEmployee/updateAuthPass", parmas);
// 获取业务工作台按钮
export const apiWorkBtn = parmas => get("/sys/work/buttons", parmas);
// 跳转大数据
export const getBigWbe = parmas => get("/sys/big-data/monitor", parmas);
// 渠道看板数据
export const apiChannelData = parmas => get("/sys/channel/data", parmas);
// 渠道下经纪人明细分页数据
export const apiAgentDetails = parmas =>
  get("/sys/channel/agentDetails", parmas);
// 渠道下进件明细分页数据
export const apiInputDetails = parmas =>
  get("/sys/channel/inputDetails", parmas);
// 渠道下经纪人提成明细分页数据
export const apiLoanOrder = parmas =>
  get("/sys/channel/loanOrderDetails", parmas);
/**
 * 组织结构页面接口
 */

//评论管理查看按钮!
export const commentsView = params =>
  post(`/business/forumComment/comment/${params}`);
//评论列表!
export const commentsList = params =>
  get("/business/forumComment/list", params);
//评论管理,操作,删除按钮!!
export const buttonDeletePl = params =>
  get(`/business/forumComment/deleteComment/${params}`);
//获取公司和部门树形结构
export const orginlistTree = parmas => get("/sys/company/listTree", parmas);

//查询所有公司接口
export const pagelist = parmas => get("/sys/company/list", parmas);

//新增公司接口
export const companyAdd = parmas => post("/sys/company/save", parmas);

//删除公司接口
export const delCompany = parmas => fdelete(`/sys/company/delete/${parmas}`);

//新增部门接口
export const departmentAdd = parmas => post("/sys/department/save", parmas);

//查询部门接口
export const departAdd = parmas => get(`/sys/department/list/${parmas}`);
// 查询一级分类!
export const getEmployeesClassified = parmas =>
  get("/sys/dictItem/findByDictCode/emp_agent_type", parmas);
// 查询二级分类!
export const getTwoClassified = parmas =>
  get(`/sys/dictItem/findByDictCode/${parmas}`);

// 保理签字页/服务融资额点数接口!
export const financialData = parmas =>
  get("/sys/dictItem/findByDictCode/financing_points", parmas);
//新增部门接口
export const deptAdd = parmas => post("/sys/department/save", parmas);

// 修改部门接口
export const editdept = parmas => post("/sys/department/save", parmas);

// 删除部门
export const deldept = parmas => fdelete(`/sys/department/delete/${parmas}`);
//根据公司id查询部门下面部门
export const getDepartment = parmas => get(`/sys/department/list/${parmas}`);

//根据id查询部门数据
export const getDepartList = parmas => get(`/sys/department/findOne/${parmas}`);

/**
 * 员工管理模块所有接口
 */

//获取在职状态字典
export const getJobStates = parmas =>
  get(`/sys/dictItem/findByDictCode/${parmas}`);
//获取区域归类!
export const areaClassification = parmas =>
  get("/sys/dictItem/findByDictCode/emp_agent_type", parmas);
//获取员工类型
export const getEmployee = parmas =>
  get(`/sys/dictItem/findByDictCode/${parmas}`);
//获取操作端开通
export const getOpening = parmas =>
  get(`/sys/dictItem/findByDictCode/${parmas}`);
//获取职级
export const getRank = () => get(`/sys/positionGrade/list`);
//获取账号状态
export const getAstatus = parmas =>
  get(`/sys/dictItem/findByDictCode/${parmas}`);
//获取所有公司
export const getCompanyList = () => get("/sys/company/list");
//添加员工信息
export const saveCompanyEmploy = parmas => post("/sys/tbEmployee/save", parmas);
//修改员工信息
export const updateCompanyEmploy = parmas =>
  put("/sys/tbEmployee/update", parmas);
//查询修改公司员工信息
export const getTbfindOne = parmas => get(`/sys/tbEmployee/findOne/${parmas}`);
// 批量开通关闭接口
export const batchCompanyEmploy = parmas =>
  put("/sys/tbEmployee/openBatch", parmas);
// 禁用员工接口
export const disableCompanyEmploy = parmas =>
  put("/sys/tbEmployee/bidden/", parmas);
// 启用员工接口
export const enableCompanyEmploy = parmas =>
  put(`/sys/tbEmployee/enable/${parmas}`);
// 获取所有职级
export const getGradeList = () => get(`/sys/positionGrade/list`);
// 导出用户
export const exportCompany = parmas => get("/sys/tbEmployee/exportEmp", parmas);
//根据 id查询一条数据
export const getOneEmploy = parmas => get(`/sys/tbEmployee/findOne/${parmas}`);
// 查询员工数据
// export const getTbEmployList = parmas => get(`/sys/tbEmployee/page${parmas}`);
//查询渠道人员 模糊查询
export const getTbEmplBy = parmas => get("/sys/tbEmployee/findByName", parmas);
/**
 * 审批流模块所有接口
 */

// 审批流删除操作
export const delApprove = parmas =>
  fdelete(`/sys/approveFlow/delete/${parmas}`);
//根据id查询一条数据
export const getApproveOne = parmas =>
  get(`/sys/approveFlow/findOne/${parmas}`);
// 添加操作
export const approveFlowAdd = parmas => post("/sys/approveFlow/save", parmas);
// 修改操作
export const approveFlowUpdate = parmas =>
  put("/sys/approveFlow/update", parmas);
// 获取表格数据
export const getApproveList = parmas => get("/sys/approveFlow/page/", parmas);
// 修改根据id查询对应name
export const getfindName = parmas => get(`/sys/tbEmployee/findName/${parmas}`);
/**
 * 角色权限模块所有接口
 */
// 通过ID删除删除角色
export const delRole = parmas => fdelete(`/sys/role/delete/${parmas}`);
// 通过ID查询一条数据
export const getOneRole = parmas => get(`/sys/role/findOne/${parmas}`);
// 查询角色权限数据
export const getRoleList = () => get(`/sys/role/list`);
// 保存角色权限
export const saveRole = parmas => post("/sys/role/save", parmas);
// 修改操作接口
export const updateRole = parmas => put("/sys/role/update", parmas);
// 修改权限操作接口
export const updatePerm = parmas => put("/sys/role/updatePerm", parmas);
//获取权限类型字典
export const getPermType = parmas =>
  get(`/sys/dictItem/findByDictCode/${parmas}`);

/**
 * 菜单操作模块所有接口
 */
//获取权限菜单
export const getMenuList = () => get(`/sys/perms/tree`);
//根据角色Id查询对应的权限ID
export const getRolePerm = parmas => get(`/sys/perms/findByRoleId/${parmas}`);
//根据角色ID修改权限/sys/role/updateRolePerm
export const updateRolePerm = parmas => put("/sys/role/updateRolePerm", parmas);
//根据权限id查询一条详细信息
export const getPermFindone = parmas => get(`/sys/perms/findOne/${parmas}`);
//添加操作接口
export const savePerms = parmas => post("/sys/perms/save", parmas);
//修改操作接口
export const updatePerms = parmas => put("/sys/perms/update", parmas);
//删除操作接口
export const delPerms = parmas => fdelete(`/sys/perms/delete/${parmas}`);

/**
 * 产品模型配置
 */
// 获取产品模型配置数据
export const getProductList = parmas => get("/business/product/page", parmas);

//产品模块-产品模型配置-操作-显示下拉框数据!
export const getStatus = params => get("/business/product/getStatus", params);
//产品模块-产品模型配置-操作-着录页按钮!
export const getLandingPage = params => get(`/business/product/getLandingPage/${params}`);
//获取产品下拉框接口!
export const getProducts = params =>
  get("/business/order/getProductByPermission", params);
//删除操作接口
export const delProduct = parmas =>
  fdelete(`/business/product/delete/${parmas}`);

//订单汇总,根据产品订单号获取产品id!
export const getID = parmas =>
  get("/business/order/getProductIdByOrdernum", parmas);
//根据id查询一条接口
export const getProductOne = parmas =>
  get(`/business/product/findOne/${parmas}`);
//查询html表集合
export const getProductHtml = parmas =>
  get(`/business/product/htmlAll`, parmas);
//根据id查询一条html集合
export const getProductHtmId = parmas =>
  get(`/business/product/htmlById`, parmas);
//添加操作接口
export const saveProduct = parmas => post("/business/product/save", parmas);
//修改操作接口
export const updateProduct = parmas => put("/business/product/update", parmas);
// 获取审批流集合
export const getProductApproveModel = parmas =>
  get(`/business/product/findApproveModel`, parmas);
// 根据htmlId查询详情
export const getProducthtmlById = parmas =>
  get("/business/product/htmlById" + "?id=" + parmas);

// 发放按钮!
export const issueButton = parmas => put("/business/register/give", parmas);

/**
 *
 *增值贷产品的所有接口
 */
//更新基本信息
export const putBaseInfo = parmas =>
  put("/business/order/updateMessage", parmas);
//根据产品id获取所有订单
export const getOrderList = parmas =>
  get(`/business/order/findOrderList`, parmas);
// 获取员工数据
export const postCompanyEmployList = parmas =>
  get(`/business/order/getEmployeeList`, parmas);
//删除接口
export const delOrder = parmas => put("/business/order/delete", parmas);
// 获取产品说明
export const getFindOneList = parmas =>
  get(`/business/product/findOne/${parmas}`);
// 获取操作信息
export const getfindListData = parmas =>
  get(`/business/operation/findList/${parmas}`);
//写一条接口
export const orderMessage = parmas => put("/business/order/message", parmas);
// 获取审批记录数据
export const getfindApproveRecordList = parmas =>
  get(`/business/order/findApproveRecordList/${parmas}`);
// 获取我要审批数据
export const getfindFilter = parmas =>
  get(`/business/order/findFilter/${parmas}`);
// 强制退回重新审批接口 更新状态
export const putUpdateStatus = parmas =>
  put("/business/order/updateStatus", parmas);
// 查询退回审批数据
export const getfindPrefixList = parmas =>
  get(`/business/order/findPrefixList/${parmas}`);
//根据id查询一条数据
export const getOrderOne = parmas => get(`/business/product/findOne/${parmas}`);
//获取订单号
export const getOrderNumber = parmas =>
  get(`business/accessory/getOrderNumber`, parmas);
//删除图片接口
export const delPic = parmas => fdelete(`/business/accessory/delete/${parmas}`);
//添加订单
export const saveOrder = parmas => post("/business/order/save", parmas);
//关键订单号查询附件
export const getOrderFileByNumber = parmas =>
  get(`/business/accessory/findByNum/${parmas}`);
//根据订单号查询附件OSS
export const getOrdFileByNumber = parmas =>
  get(`/business/accessory/findDetailAndOssByNumber/${parmas}`);
//获取Oss凭证
export const getOssOrder = () => get(`/business/accessory/getOssAuth`, {});
// export const getOssOrder = () => get(`/business/survey/getStsToken`, {});
//oss后后台添加数据
export const addOrderImg = parmas => post("/business/accessory/addImg", parmas);
//oss删除附件
export const delOssPic = parmas =>
  fdelete(`/business/accessory/deleteOssAccessory/${parmas}`);

// 获取订单信息
export const getFindOrderMessage = parmas =>
  get(`/business/order/findOrderMessage/${parmas}`);
// 获取提成规则
export const getCalculation = parmas =>
  get(`/business/calculation/findOne/${parmas}`);
//初始化提成规则
export const getCalculationShow = parmas =>
  get(`/business/calculation/changeShow/${parmas}`);
//根据订单号查询表格信息
export const getOrderTable = parmas =>
  get(`/business/order/findByOrderNumber/${parmas}`);
//更新录入表格信息
export const updateOrderForm = parmas =>
  put("/business/order/updateForm", parmas);
//提交审批
export const putOrderCommit = parmas => put(`/business/order/commit/${parmas}`);
//模糊查询
export const getOrderListBy = parmas =>
  get(`/business/order/findFilterList`, parmas);
// 乐业分分期
export const getOrderListLy = parmas =>
  get(`/business/live/findFilterList`, parmas);
//待交件补登信息
export const getRecordModel = parmas =>
  get(`/business/order/findRecordModel/${parmas}`);
// 审批提交按钮
export const putCalculation = parmas =>
  put("/business/calculation/change", parmas);
// 同意按钮
export const putAffirm = parmas =>
  put(`/business/calculation/affirm/${parmas}`);
//集合标记状态
export const updateStatusList = parmas =>
  put(`/business/order/updateStatusList`, parmas);
//根据订单Id导出数据
export const orderExport = parmas =>
  post(`/business/order/exportOrder`, parmas);
/**
 * 注册用户管理
 */
// 获取表格数据
export const getUserList = parmas => get(`/sys/user/page/`, parmas);
// 删除操作接口
export const delUser = parmas => fdelete(`/sys/user/delete/${parmas}`);
// 新增操作接口
export const postSaveUser = parmas => post("/sys/user/save", parmas);
// 修改操作接口
export const putUpdateUser = parmas => put("/sys/user/update", parmas);
// 获取修改数据
export const getUserFindOne = parmas => get(`/sys/user/findOne/${parmas}`);
// 导出
export const exportReport = parmas => get(`/sys/user/exportUser`, parmas);
// 订单表
export const exportOrder = parmas => get(`/sys/user/order/${parmas}`);

/**
 * 可提成订单管理
 */

//获取可提成订单
export const getCalList = parmas =>
  get(`/business/calculation/calculationList2`, parmas);
//取消核算
export const cancleCal = parmas => put("/business/calculation/cancel", parmas);
// 处理更新状态
export const markUpdate = parmas => put("/business/order/markUpdate", parmas);

/**
 * 待收款
 */
// 可提成订单>筛选>提成类型字典!
export const commissionType = params =>
  get("/sys/dictItem/findByDictCode/commission_type", params);
//根据订单号查询待收款信息
export const getUpForm = parmas =>
  get(`/business/upForm/findOrderNumber`, parmas);
//根据订单号查询待权证信息
export const getWarrant = parmas => get(`/business/upForm/findWarrant`, parmas);
//根据订单号查询待权证信息（乐业分分期）
export const getWarrantlive = parmas =>
  get(`/business/live/findWarrant`, parmas);
// 根据订单号查询分期信息
export const getChargePart = parmas => get(`/business/live/getInfo`, parmas);
// 财务查询接口
export const getChargeCaiwu = parmas => get(`/business/live/getCharge`, parmas);
// 添加修改权证信息
export const putUpWarrant = parmas => put(`/business/live/upWarrant`, parmas);
// 添加修改分期信息
export const putChargePart = parmas => put(`/business/live/chargePart`, parmas);
// 已放款修改分期信息
export const putUpServiceLoans = parmas =>
  put(`/business/live/upServiceLoans`, parmas);
// 已放款每月还款额信息
export const putServiceCharge = parmas =>
  put(`/business/live/serviceCharge`, parmas);
//提价合同信息申请
export const postGuaranteeMoney = parmas =>
  put(`/business/upForm/GuaranteeMoney`, parmas);
//提交财务申请
export const postCharge = parmas => put(`/business/upForm/charge`, parmas);
//提交财务申请(乐业分分期)
export const postChargeFen = parmas => put(`/business/live/charge`, parmas);
//提交权证申请
export const postWarrant = parmas => put(`business/upForm/upWarrant`, parmas);
// 提交每月还款额
export const postChargeMy = parmas =>
  put(`/business/live/serviceCharge`, parmas);
// 根据订单号查询贷后信息
export const getLoansSuffix = parmas =>
  get(`/business/upForm/findLoansSuffix`, parmas);
// 提价贷后信息
export const postLoansSuffix = parmas =>
  put(`/business/upForm/upLoansSuffix`, parmas);
// 获取已中止和已归档基本信息
export const getFindForm = parmas => get(`/business/upForm/findForm`, parmas);

//发送请求图片得到url地址
export const getImgUrl = parmas => get(`business/accessory/getFile/`, parmas);

//根据订单号查询当前订单path路产品状态和更新情况
export const getProductUrl = parmas =>
  get(`/business/TbLeading/findProductUrl`, parmas);
//根据产品id查询跳转路径
export const getTbleadgUrl = parmas =>
  get(`/business/TbLeading/findLendingUrl`, parmas);
//安居分财务
export const putAjfCharge = parmas => put(`/business/upForm/ajfCharge`, parmas);
//安居分放贷
export const putAjfLoan = parmas => put(`/business/upForm/ajfLoan`, parmas);
//自动填入
export const getAutoInputMargin = parmas => get(`/business/upForm/chargeCalculation/${parmas}`);

/**
 * 全民经纪人邀请
 */
// 分页查询
export const getAgentInvite = parmas => get(`/sys/agentInvite/page`, parmas);
// 删除
export const delAgentInvite = parmas =>
  fdelete(`/sys/agentInvite/delete/${parmas}`);
// 导出
export const exportAgentInvite = parmas =>
  get(`/sys/agentInvite/exportUser`, parmas);

/**
 * 全民经纪人业绩
 */
// 分页查询
export const getAgentAchievement = parmas =>
  get(`/sys/agentAchievement/page`, parmas);
// 删除
export const delAgentAchievement = parmas =>
  get(`/sys/agentAchievement/findOne/${parmas}`);
// 导出

/**
 * 合伙人奖金
 */

//获取合伙人列表数据
export const getPartnerList = parmas =>
  get(`/business/partnerData/page`, parmas);
//合伙人奖金详情
export const getPartnerData = parmas =>
  get(`/business/partnerData/getInfo/${parmas}`);
// 查询合伙人团队个人当月详情数据
export const getDetails = parmas =>
  get(`/business/partnerData/details/${parmas}`);
//获取奖金详情
export const getPartnerBonus = parmas =>
  get(`/business/partnerData/getBonus/${parmas}`);
//获取预估奖金查询
export const getPartnerPredict = parmas =>
  get(`/business/partnerData/predict/${parmas}`);

//待放款获取收费参考
export const getProductRefer = parmas =>
  get(`/business/product/chargeRefer`, parmas);
//获取意向申请金额
export const getIntention = parmas =>
  get("/business/calculation/getIntention", parmas);
//修改收费
export const getChargeCount = parmas =>
  post("/business/calculation/chargeCount", parmas);
//获取销售提成渠道提成
export const getupCharge = parmas =>
  post("/business/calculation/upCharge", parmas);
//待跟进状态变更
export const changeFollow = parmas => get(`/business/order/follow/`, parmas);

/**
 * 内容管理模块api
 */
//获取内容栏目
export const getColumnList = () => get(`/sys/column/tree`);
//查询一条栏目详细信息
export const getColumnOne = parmas => get(`/sys/column/findOne/${parmas}`);
//添加栏目
export const postColSave = parmas => post("/sys/column/save", parmas);
//更新栏目
export const updateColSave = parmas => put("/sys/column/update", parmas);
//删除栏目
export const delColumnOne = parmas => fdelete(`/sys/column/delete/${parmas}`);
//分页查询所有内容列表
export const getContentList = parmas => get("/sys/content/page", parmas);
//根据id查询一个条栏目数据
export const getContentOne = parmas => get(`/sys/content/findOne/${parmas}`);
//单附件删除
export const delColumnEnc = parmas => post("/sys/content/deleteFile", parmas);
//多附件删除
export const delColumnMany = parmas =>
  post(`/sys/content/deleteManyFile/${parmas}`);
//修改一条内容数据
export const updateContent = parmas => put("/sys/content/update", parmas);
//修改法拍房上传
export const updateConHouse = parmas => put("/sys/content/updateHouse", parmas);
//删除一条数据
export const delConCol = parmas => fdelete(`/sys/content/delete/${parmas}`);
//启用一条数据
export const enaConCol = parmas => put(`/sys/content/enable//${parmas}`);
//模糊匹配发布者
export const getConByName = parmas => get(`/sys/content/findByName`, parmas);
//关联进件
export const getFindProject = parmas => get(`/sys/content/findProject`, parmas);
//查询产品列
export const getProList = () => get(`/business/product/productList`);

//公积金
//模糊查询
export const getAccOrderList = parmas =>
  get(`/business/fund/findFilterList`, parmas);
//获取公积金信息’
export const getAccInfo = parmas => get(`/business/fund/getInfo/${parmas}`);
//公积金更新客户资料
export const updaAccForm = parmas => put(`/business/fund/updateForm`, parmas);
//公积金财务
export const postChargeAccs = parmas => put(`/business/fund/change`, parmas);
//公积金反馈信息
export const updateBackMsg = parmas => put(`/business/fund/backMsg`, parmas);

/**
 * 按揭赎楼
 */
//模糊查询
export const getRedOrderList = parmas =>
  get(`/business/redeem/findFilterList`, parmas);
//按揭楼房
export const getInfoMort = parmas => get(`/business/redeem/getInfo/${parmas}`);
//按揭楼房更新客户资料
export const updaMortForm = parmas =>
  put(`/business/redeem/updateForm`, parmas);
//普通按揭查询信息
//按揭楼房
export const getordinaryMort = parmas =>
  get(`/business/ordinary/getInfo/${parmas}`);
//普通按揭更新客户资料
export const updaOrdinaryMortForm = parmas =>
  put(`business/ordinary/updateForm `, parmas);
//赎楼信息提交
export const putRedAcc = parmas => put(`/business/redeem/take`, parmas);
//赎楼财务提交
export const putRedChage = parmas => put(`/business/redeem/charge`, parmas);
//放款权证提交
export const putRedWar = parmas => put(`/business/redeem/warrant`, parmas);
//放款垫资提交
export const putRedAdv = parmas => put(`/business/redeem/advance`, parmas);
//放款按揭提交
export const putRedMort = parmas => put(`/business/redeem/mortgage`, parmas);
//普通按揭放款提交
export const putOrdinaryMort = parmas =>
  put(`/business/ordinary/mortgage`, parmas);
//普通按揭抵押财务提交
export const putOrdinaryCharge = parmas =>
  put(`/business/ordinary/charge`, parmas);
// 普通按揭放款信息
export const putOderRedAdv = parmas =>
  put(`/business/ordinary/advance`, parmas);
/**
 *法拍房一类接口
 */
//模糊查询
export const getFapaiOrderList = parmas =>
  get(`/business/auction/findFilterList`, parmas);
//法拍房所有信息
export const getAucMort = parmas => get(`/business/auction/getInfo/${parmas}`);
//法拍房更新客户资料
export const updaAucForm = parmas =>
  put(`/business/auction/updateForm`, parmas);
//法拍房贷款信息
export const putAucMort = parmas => put(`/business/auction/mortgage`, parmas);
//强制退回重新审批接口 更新状态
export const putAucStatus = parmas =>
  put("/business/auction/updateStatus", parmas);
//法院信息
export const putAucCourt = parmas => put("business/auction/court", parmas);
//权证信息
export const putAucWar = parmas => put("business/auction/warrant", parmas);
///  收费信息 尾款
export const putAucCharg = parmas => put("business/auction/change", parmas);

/**
 * 客户签约
 */
// 查看是否签约

export const getSign = parmas => get(`/business/live/getSign/${parmas}`);
//查询是否填写银行卡数据
export const getSignBank = parmas => get(`/business/live/getBank`, parmas);
//提价银行卡号
export const postBankInfo = parmas => put("/business/live/bankInfo", parmas);
// 查询签约客户基本信息
export const getSignBasic = parmas => post(`/sys/sign/basic`, parmas);
// 查询发送协议及附件需要核对客户信息
export const getSignGenerate = parmas => post("/sys/sign/generate", parmas);
// 查询发送协议及附件需要核对客户信息
export const getSignFind = parmas => get(`/sys/sign/find/${parmas}`);
// 查询签约过程
export const getSignFindProcess = parmas =>
  get(`/sys/sign/findProcess/${parmas}`);
//短信发送签约界面
export const singNote = parmas => post(`/sys/sign/note/${parmas}`);
//提交银联签约
export const chinaPay = parmas => post(`/sys/sign/chinaPay/${parmas}`);
//提交银联解约
export const unlockPay = parmas => post(`/sys/sign/unlock/${parmas}`);
//填写驳回原因
export const rejectSign = parmas => post(`/sys/sign/reject`, parmas);
//同意签约，并立即生成分期表
export const signAgree = parmas => post(`/sys/sign/agree/${parmas}`);
// 查看是否签约判断是否能解约
export const getIsSign = parmas => get(`/sys/sign/isSign/${parmas}`);
// 下载PDF
export const getSignDownload = parmas => get(`/sys/sign/download/${parmas}`);
// 签约分页查询
export const getSginPage = parmas => get(`/sys/sign/page/`, parmas);
// 签约解约
export const postRescind = parmas => post(`/sys/sign/rescind`, parmas);

/**
 * 电子合同
 */
// 获取表格数据
export const getPageContract = parmas =>
  get(`/business/sign/pageContract`, parmas);
// 查看分期合同
export const getPageContractInfo = parmas =>
  get(`/business/sign/pageContractInfo`, parmas);
// 添加扣款日期
export const postDeductDate = parmas =>
  post(`/business/sign/deductDate`, parmas);

/**
 *
 * 合伙人团队
 */
// 分页查询
export const getTeamPage = parmas => get(`/sys/team/page`, parmas);
export const postTeamUpdate = parmas => post(`/sys/team/update`, parmas);

// 更新数据

//项目绩效-内勤绩效统计
export  const  getInternalWork = parmas =>get(`/business/performance/countBackOffice`,parmas);
//项目绩效-下户绩效统计
export  const  getUnderDoor = parmas =>get(`/business/performance/countSurvey`,parmas);
//项目绩效-业务绩效统计
export  const  getSalesSepartment = parmas =>get(`/business/performance/countSales`,parmas);
//项目绩效-权证绩效统计
export  const  getWarrantStatistics = parmas =>get(`/business/performance/countWarrant`,parmas);
/**
 * 分期管理
 */
// 人员分期表格数据
export const getPagePerson = parmas => get(`/business/sign/pagePerson`, parmas);
// 查看分期明细
export const getPagePersonInfo = parmas =>
  get(`/business/sign/pagePersonInfo`, parmas);
// 月份分期表格数据
export const getPageMonth = parmas => get(`/business/sign/pageMonth`, parmas);
// 查看分期明细
export const getPageMonthInfo = parmas =>
  get(`/business/sign/pageMonthInfo`, parmas);
//查看分期核算!
export const installmentAccounting = parmas =>
  get(`/business/calculation/commission/${parmas}`);
// 人员发起扣款
export const postDeductPerson = parmas =>
  post(`/business/sign/deductPerson`, parmas);
// 人员明细统计
export const getPersonInfoTotal = parmas =>
  get(`/business/sign/personInfoTotal/${parmas}`);
// 人员分期响应状态
export const getChinaPayCode = parmas =>
  get(`/business/sign/chinaPayCode/${parmas}`);
// 月份分期查询
export const getPayQuery = parmas => get(`/business/sign/payQuery/${parmas}`);
//月份分期逾期扣款记录
export const getoverdveDeduction = parmas => get(`/business/sign/overdueDeduction`,parmas);
//月份分期逾期扣款详细明细
export const getOverdueDeductionDetails = parmas => get(`/business/sign/overdueDeductionDetails`,parmas);
//查看逾期核算
export const overdveAccounting = parmas =>
    get(`/business/calculation/accounting/?exergue=${parmas}`);
//
export const getRollupOverdue = parmas => get(`/business/sign/rollupOverdue/?month=${parmas}`);
// 月份明细统计
export const getMonthInfoTotal = parmas =>
  get(`/business/sign/monthInfoTotal/?executeTime=${parmas}`);
// 线下扣款
export const putOffline = parmas => put(`/business/sign/offline`, parmas);
// export const putOffline = parmas => put(`/business/sign/offline`, parmas);
// 月份分期发起扣款
// export const postDeductMonth = parmas => post(`sign/deductMonth`,parmas);



// 总分期人员表
export const totalStaging = parmas => get(`/business/guaranteeStaging/totalStaging`, parmas);
// 分期客户清单汇总-查看
export const findByExecMonth = parmas => get(`/business/guaranteeStaging/findByExecMonth`, parmas);
// 查询借款人信息
export const querySignUpList = parmas => post(`/business/guaranteeStaging/asyQueryFormInfo`, parmas);
// 添加担保费分期记录
export const insertGuarantee = parmas => post(`/business/guaranteeStaging/insertGuarantee`, parmas);
// 删除担保费分期记录
export const batchDeleteGuarantee = parmas => post(`/business/guaranteeStaging/batchDeleteGuarantee`, parmas);
// 更新担保费分期记录
export const updateGuarantee = parmas => post(`/business/guaranteeStaging/updateGuarantee`, parmas);
/**
 *
 * 下载生成合同
 */
// 乐业保=>担保合同下载
export const postDownload = parmas =>
  post(`/business/contract/downloadLyb`, parmas);
// 融银贷下载
export const postDownloadRyd = parmas =>
  post(`/business/contract/downloadRyd`, parmas);
// 乐业分=>保理合同下载 (20220406)
export const postDownloadLyf = parmas =>
  post(`/business/contract/downloadNewLyfLb`, parmas);
// 乐业分=>保理合同下载!
export const postDownloadBl = parmas =>
  post(`/business/contract/downloadLyfLb`, parmas);
// 乐业分=>保理签字页下载!(改成服务合同20220406)
export const downloadLyfService = parmas =>
  post(`/business/contract/downloadLyfService`, parmas);
// 乐业分=>担保合同下载!
export const Lyfcontract = parmas =>
  post(`/business/contract/downloadLyfRb`, parmas);
// 融银贷=>保理合同下载(20220406)
export const PostDownloadRydL = parmas =>
  post(`/business/contract/downloadNewRydLb`, parmas);
// 乐业保《服务合同》,模板文件夹contractLyb
export const downloadLybService = parmas =>
  post(`/business/contract/downloadLybService`, parmas);
// 融银贷=>保理合同下载(20220406 服务合同)
export const downloadRydService = parmas =>
  post(`/business/contract/downloadRydService`, parmas);
//融银贷=>担保合同下载!
export const Rydcontract = parmas =>
  post(`/business/contract/downloadRydRb`, parmas);
//担保安居分保理合同下载!(20220406)
export const postDownloadDBAJf = parmas =>
  post(`/business/contract/downloadNewDbAjfLb`, parmas);
//担保安居分保理签字页下载!(改成服务合同 20220406)
export const downloadDbAjfService = params =>
  post(`/business/contract/downloadDbAjfService`, params);
//担保安居分保理合同下载!
export const guaranteeContractDBAJF = params =>
  post(`/business/contract/downloadEnsureAjfRb`, params);
/**
 * oss
 */
export const postCustomer = parmas => post(`/sys/init/image/customer`, parmas);
// 产品上传推广图oss凭证
export const getProductOss = parmas => get(`/business/product/getPush`, parmas);
// 着陆页oss凭证
export const LandingOss = parmas => get(`/business/product/getLand`, parmas);
// 产品上传图标oss凭证
export const getImgOssProduct = parmas =>
  get(`/business/product/getImg`, parmas);
// 获取推广图集合
export const listPushImgProduct = parmas =>
  get(`/business/product/listPush/${parmas}`);
// 保存推广图
export const addProductOss = parmas => put(`/business/product/addPush`, parmas);
// 产品图添加!
export const addImgOssProduct = parmas =>
  put(`/business/product/addImg`, parmas);
// 着陆页添加!
export const LandingAdd = parmas =>
  put(`/business/product/addLandPage`, parmas);
// 删除图标
export const deleteImgProduct = parmas =>
  put(`/business/product/deleteImg/${parmas}`);
// 删除推广图
export const deleteImgPromotion = parmas =>
  put(`/business/product/deletePush/${parmas}`);

export const deleteImg = parmas =>
  fdelete(`/business/product/deletePhotoById/${parmas}`);
// 删除着陆页推广图!
export const LandingImg = parmas =>
  put(`/business/product/deleteLandPage/${parmas}`);

// 等级管理
export const getClassify = parmas => get(`/sys/grade/classify`, parmas);
// 等级详情
export const getGradePage = parmas => get(`/sys/grade/page`, parmas);
// 新增修改
export const postGradeSave = parmas => post(`/sys/grade/save`, parmas);
// 查询一条数据
export const getGradeFindOne = parmas => get(`/sys/grade/findOne/${parmas}`);
// 删除
export const deleteGrade = parmas => fdelete(`/sys/grade/delete/${parmas}`);

/**
 * 省市区
 *  */

// 查询订单原有地区
export const getAddress = parmas => get(`business/order/address/${parmas}`);

// 获取省市区
export const getDistrict = parmas =>
  get(`/business/order/getDistrict/${parmas}`);
// 添加地区
export const putUpDistrict = parmas =>
  put("/business/order/upDistrict", parmas);

/**
 * 推广类型
 */
// app 推广类型
export const getEtExtension = parmas =>
  get(`/business/product/getExtension`, parmas);

/**
 * 不动产
 */
export const getXhphPage = parmas => get(`/business/xhph/page`, parmas);
// 查询标记已交件是否提交到不动产
export const getXhphTable = parmas => get(`/business/xhph/table/${parmas}`);
// 提交不动产
export const getXhphAdd = parmas => put(`/business/xhph/add`, parmas);
// 查看不动产数据
export const getXhphBayId = parmas => get(`/business/xhph/bayId/${parmas}`);
//不动产查看下户信息
export const getXhphSur = parmas => get(`/business/xhph/surveyPage`, parmas);
//不动产查看详情
export const getResByRid = params =>
  get(`/business/survey/byRid/${params}`, {});

/**
 *
 * 合同模板API
 *
 */
// 分页查询
export const getContractPage = parmas =>
  get(`/sys/contract/template/page/`, parmas);
// 查询产品
export const getContractType = parmas =>
  get(`/sys/contract/template/type`, parmas);
// 新增
export const getContractAdd = parmas =>
  post(`/sys/contract/template/save`, parmas);
// 编辑查询
export const getContractFindOne = parmas =>
  get(`/sys/contract/template/findOne/${parmas}`);
// 删除
export const deleteContract = parmas =>
  fdelete(`/sys/contract/template/delete/${parmas}`);

/**
 *
 * 后台合同签约
 *
 */
//  获取上传的A4附件地址集合
export const getFingers = parmas =>
  get(`/sys/contract/sign/getFingers/${parmas}`);
// 点击开始签约
export const postObtainRtc = parmas =>
  post(`/sys/contract/sign/obtain/rtc/${parmas}`);
// 点击开始录制
export const postCameraStart = parmas =>
  post(`/sys/contract/sign/camera/start/${parmas}`);
// 点击结束录制
export const postCameraDown = parmas =>
  post(`/sys/contract/sign/camera/down/${parmas}`);
// 确认上传指纹附件无误
export const postConfirmFingers = parmas =>
  post(`/sys/contract/sign/confirm/fingers/${parmas}`);
// 获取合同附件
export const getUploads = parmas =>
  get(`/sys/contract/sign/getUploads/${parmas}`);
// 确认上传合同附件无误
export const postConfirmUploads = parmas =>
  post(`/sys/contract/sign/confirm/uploads/${parmas}`);
// 重签
export const postResign = parmas => post(`/sys/contract/sign/resign/${parmas}`);
// 同意签约
export const postAgree = parmas => post(`/sys/contract/sign/agree/${parmas}`);
// 生成合同
export const postGuarantee = parmas =>
  post(`/sys/contract/sign/generate/guarantee${parmas}`);

/**
 * 下户调查工具系列接口
 */
//工具-下户工具获取未派单列表
export const getSurveyList = parmas =>
  get(`/business/survey/surveyPage`, parmas);
//获取下拉角色
export const getSurveyRole = () => get(`/business/survey/appointRole`);
//工具-下户工具pc:1--根据角色下拉人
export const getSurRole = parmas =>
  get(`/business/survey/appointEmp/${parmas}`);
//后台派单
export const surAppoint = parmas => post(`/business/survey/appoint`, parmas);
// 下户 =>已派单=>操作=>修改按钮！
export const Modify = parmas =>
  get(`/business/survey/appointByOrderNum/${parmas}`);
// 下户 =>已派单=>操作=>修改=>确定按钮！
export const determine = parmas => put(`/business/survey/updateSurvey`, parmas);
//工具-下户工具获取已派单列表
export const surveyExistPage = parmas =>
  get(`/business/survey/surveyExistPage`, parmas);
//下户OSS上传资料获取
export const getSurveyOss = () => get(`/business/survey/getMap`, {});
//OSS上传成功后与后台绑定
export const surAddImg = parmas => post(`/business/survey/addImg`, parmas);
//下户查看详情
export const getSurResult = params =>
  get(`/business/survey/byId/${params}`);
//下户调查工具 删除附件
export const delSuryImg = parmas =>
  fdelete(`/business/survey/deleteImg/${parmas}`);
//下户工具 添加数据
export const addSurData = parmas => post(`/business/survey/addData`, parmas);
//下户工具 添加数据
export const updateSurData = parmas => put(`/business/survey/upData`, parmas);
//下户工具 驳回通过
export const auditSurvey = parmas => put(`/business/survey/audit`, parmas);
// 评论列表审核按钮!
export const auditButton = params =>
  post("/business/forumComment/audit", params);
//帖子管理!
export const Postmanagement = params =>
  get("/business/forum/topicList", params);

//帖子管理,操作,删除按钮!
export const buttonDelete = params =>
  get(`/business/forum/deleteTopic/${params}`);
//帖子下载按钮!
export const DownloadButton = params =>
  get(`/business/forum/accessory/${params}`);

// 帖子审核!
export const PostAudit = params => post("/business/forum/topicAudit", params);
// 帖子查看按钮!/business/forum/picture
export const viewButton = params => get(`/business/forum/picture/${params}`);
//提现列表!/business/extract/page
export const withdrawalList = params => get("/business/extract/page", params);
//提现状态!
export const withdrawalState = params =>
  get("/business/extract/withdrawalState", params);
// 提现审核!
export const WithdrawalAudit = params => put("/business/extract/audit", params);
// 商机列表!
export const BusinessList = params => get("/business/quickApply/page", params);
//转为订单按钮!
export const orderTurn = params =>
  post("/business/quickApply/convert2Order", params);
//获取产品列表!
export const productList = params =>
  get("/business/quickApply/getProductsByCity", params);
//筛选框获取城市下拉框数据!
export const getCity = params =>
  get("/sys/dictItem/findByDictCode/h5_city", params);
//筛选框获取产品下拉框数据!
export const getProduct = params =>
  get("/business/quickApply/getH5ProductsByAgentType", params);
// 商机列表,修改备注!
export const noteModify = params =>
  post("/business/quickApply/updateCuleNote", params);
// 删除功能!
export const DataIdD = params =>
  fdelete("/business/quickApply/deleteClue", params);
//商机管理模块,未处理条数!
export const getUntreated = params =>
  get("/business/quickApply/unprocessedCount", params);
// //商机管理模块,转为订单获取推广人所在部门!
export const getBusinessDepartment = params =>
  get(`/business/quickApply/toOrderCall/${params}`);
// //商机管理模块,注册管理列表!
export const getRegisteredList = params =>
  get("/business/h5enroll/page", params);

//商机管理模块,注册管理列表,转注册获取下拉框数据!
export const getorderState = params =>
  get("/sys/dictItem/findByDictCode/h5_city", params);
//商机管理模块,注册管理列表,转注册提交!
export const registeredUpload = params =>
  post("/business/h5enroll/enroll", params);
//商机管理模块,注册管理列表删除数据!
export const deleteData = params =>
  get(`/business/h5enroll/deleteById/${params}`);
//订单,风控大数据执行人查询!
export const PromiseQuery = params =>
  post("/business/risk/courtBrokePromiseQuery", params);
//订单,风控大数据法院数据查询!
export const courtInfo = params =>
  post("/business/risk/courtLitigationQuery", params);
//订单,风控大数据税务负面信息查询!
export const taxData = params =>
  post("/business/risk/negativeTaxQuery", params);
//订单,风控大数据税务负面信息查询!
export const identity = params =>
  post("/business/risk/verificationCardId", params);
// /business/product/getProductPhoto
//产品模型-产品图片oss接口!
export const productOssimg = params =>
  get("/business/product/getProductPhoto", params);
//指派确定接口!
export const assignedApi = params =>
  post("/business/order/order/trustee", params);
//下户图片打包!
export const XHimgPack = params =>
  get("/business/survey/downLoadImgs", params);
//产品图片打包!
export const CPimgPack = params =>
  get("/business/accessory/downLoadImgs", params);
//   // 下户附件类型!
// export const getXHImgType =params=>get("/sys/dictItem/findByDictCode/survey_accessory_type",params)
// 订单附件类型!
export const getDDImgType = params => get("/sys/dictItem/findByDictCode/accessory_type", params);
// 担保安居分不动产抵押表下载!
export const dbajfdownload = params => post("/business/contract/mortgageTableDbAjf", params);
// 融银贷不动产抵押表下载!
export const ryddownload = params => post("/business/contract/mortgageTableRyd", params);
// 乐业分不动产抵押表下载!
export const lyfdownload = params => post("/business/contract/mortgageTableLyf", params);
// 乐业保不动产抵押表下载!
export const lybdownload = params => post("/business/contract/mortgageTableLyb", params);
// 图片下载获取授权下载地址！
export const getImgCode = params => get("/business/survey/getStsToken", params);
// 安居分图片详情!
export const productDetails = params => get("/business/accessory/findOssAccessoryByNumber", params);
//内容管理>合同模板>获取所有合同详情!
export const getcontractModel = params => get("/business/contractModel/list", params);
// 内容管理>合同模板>上传合同oss授权!
export const submitCode = params => get("/business/contractModel/getUploadToken", params);
// 内容管理>合同模板>上传合同!
export const uploadContract = params => post("/business/contractModel/submitModel", params);
// 内容管理>合同模板>删除合同!
export const contractDelete = params => fdelete(`/business/contractModel/deleteModel/${params}`);
// 新闻资讯,查询新闻资讯列表!
export const queryNews = params => get("/business/websiteNews/queryNews/", params);
// 新闻资讯,上传封面图片凭证!
export const NewsCode = params => get("/business/websiteNews/getNewsOSS", params);
// 新闻资讯,修改新增接口!
export const NewsUplod = params => put("/business/websiteNews/changeNews", params);
// 新闻资讯,查询资讯接口!
export const queryInformation = params => get(`/business/websiteNews/getNews/${params}`);
// 新闻资讯,更改状态接口!
export const stateSwitch = params => post("/business/websiteNews/updateStatus", params);
// 新闻资讯,删除数据接口!
export const deleteNewss = params => fdelete(`/business/websiteNews/deleteNews/${params}`);
// 贷后信息查询接口!
export const getLoanInfo = params => get(`/business/order/getLoanInfo/${params}`);

// 贷后代偿查询添加接口!
export const addLoan = params => put("/business/repayInfo/alterRepayInfo", params);
// 贷后代偿查询添加接口!
export const LoanAfter = params => get(`/business/repayInfo/getRepayInfo/${params}`);
// 修改率贷后备注和结清备注接口!
export const ModifyRemark = params => post("/business/order/updateLoanInfo", params);
// 人员分期表,提前结清接口!
export const postSettlement = params => post("/sys/overdue/updateOverdueStatus", params);
// 商机列表详情接口!
export const detailsList = params => get(`/business/quickApply/info/${params}`);
// 融银贷二抵抵押表接口!
export const mortgageRYD = params => post("/business/contract/downLoadRydImpawn", params);
// 乐业保二抵抵押表接口!
export const mortgageLYB = params => post("/business/contract/downLoadLybImpawn", params);
// 乐业分二抵抵押表接口!
export const mortgageLYF = params => post("/business/contract/downLoadLyfImpawn", params);
// 担保安居分二抵抵押表接口!
export const mortgageDBAJF = params =>
  post("/business/contract/downLoadDbAjfImpawn", params);
//产品客户信息导出!
export const UserInfoExport = params =>
  post("/business/order/export/customerInfo", params);
// 服务融资点数接口!
export const financingPoints = params => get(`/business/upForm/financingPoints/${params}`);
// 保证金回显接口!
export const margin = params => get(`/business/upForm/margin/${params}`);
//月份分期表!
export const deductTask = params =>
  put("/business/sign/deductTask", params);
//商品信息列表!
export const getMallCommodityList = params =>
  get("/business/mall/commodityList", params);
//商品图片上传凭证!
export const MallImgCode = params =>
  get("/business/mall/getCommodityOSS", params);
//积分商城管理>商品信息>增加商品信息!
export const addMall = params =>
  post("/business/mall/addCommodity", params);
//积分商城管理>商品信息>修改商品信息!
export const modifyMall = params =>
  post("/business/mall/updateCommodity", params);
// 积分商城管理>商品信息>操作>删除商品!
export const deleteMall = params => fdelete(`/business/mall/deleteCommodity/${params}`);
// 积分商城管理>商品信息>操作>编辑商品!
export const queryMall = params => get(`/business/mall/getCommodityInfoById/${params}`);
//积分商城管理>收货人信息>获取收货人列表!
export const consigneeInfo = params =>
  get("/business/consigneeInfo/pageList", params);
//积分商城管理>收货人信息>删除收货人!
export const deleteCommodity = params => fdelete(`/business/consigneeInfo/deleteById/${params}`);
//积分商城管理>收货人信息>更新状态!
export const updateOrderStatus = params =>
  post("/business/consigneeInfo/updateOrderStatus", params);
//融银贷>合同管理>业务推荐表下载!
export const referenceFormRYD = params =>
  post("/business/contract/referenceFormRYD", params);
//乐业保,担保安居分,乐业分>合同管理>业务推荐表下载!
export const referenceFormLYB = params =>
  post("/business/contract/referenceFormLYB", params);
//所有产品业务推荐表下载!
export const referenceFormData = params =>
  get(`/business/contract/referenceFormData/${params}`);
//积分商城管理>积分明细>积分列表信息!
export const getIntegral = params =>
  get("/business/integral/pageList", params);
//电子合同管理>签约管理>换卡接口查询!
export const InCard = params =>
  get(`/sys/sign/getChangeInfo/${params}`);
//电子合同管理>签约管理>换卡>获取手机验证码接口!
export const getCode = params =>
  post("/sys/sign/getSignMsgCode", params);
//电子合同管理>签约管理>换卡>解绑接口!
export const unbundling = params =>
  post("/sys/sign/changeCardRescind", params);
//电子合同管理>签约管理>换卡>签约接口!
export const signing = params => post("/sys/sign/changeBankCard", params);
// 查询是否是审件专员!
export const getCommissioner = params => get("/sys/tbEmployee/getLocalLoginerInfo", params);
// 分期客户清单汇总
export const fqList = params => get("/business/guaranteeStaging/list", params);

// 结清分期担保费
export const settle = params => post("/business/guaranteeStagingSettle/finish", params);

// 查询财务信息
// export const financial = orderNumber => get(`/business/upForm/financial/${orderNumber}`);
export const financial = orderNumber => get(`/business/financeInfo/${orderNumber}`);
// 修改财务信息
// export const updateFinancial = params => post(`/business/upForm/updateFinancial`,params);
export const updateFinancial = params => post(`/business/financeInfo/update`,params);

// 查询房屋评估列表
export const pagingQuery = params => get(`/business/homeAppraisal/pagingQuery`,params);
// 添加房屋评估数据
export const homeAppraisalAdd = params => post(`/business/homeAppraisal/add`,params);

// 修改房屋评估数据
export const homeAppraisalUpdate = params => post(`/business/homeAppraisal/update`,params);

// 分页查询客户完结情况表
export const financePagingQuery = params => get(`/business/finance/pagingQuery`,params);

// 查询客户经理数据
export const queryBusinessManager = name => get(`/business/finance/queryBusinessManager/${name}`);

// 更新客户完结支出数据
export const updateExpenditure = params => post(`/business/finance/updateExpenditure`,params);

// 客户结清解压表数据
export const contractDataUnpack = orderNumber => get(`/business/contractData/unpack/${orderNumber}`);

// 客户结清解押表
export const downLoadUnpack = params => post(`/business/contract/downLoadUnpack`,params);

// 签约信息列表
export const signAppContract = params => get(`/business/signAppContract/pagingQuery`,params);

// 查看签约附件
export const getViewFile = params => post(`/business/signAppContract/viewFile`,params);

// 信息核对
export const checkInformation = orderNumber => get(`/business/signAppManager/checkInformation/${orderNumber}`);

// 发起签约
export const initiation = params => post(`/business/signAppManager/initiation`,params);

// 远程监测
export const signAppManagerMonitor = params => post(`/business/signAppManager/monitor`,params);

// 同意签约
export const signAppManagerAgree = contractId => get(`/business/signAppManager/agree/${contractId}`);

// 驳回重签
export const signAppManagerRejection = params => post(`/business/signAppManager/rejection`,params);

// 预览附件
export const signAppManagerpreview = id => get(`/business/signAppManager/preview/${id}`);
// 列表
export const prepayPagingQuery = params => get(`/business/prepay/pagingQuery`,params);
// 跟进
export const prepayFollow = params => post(`/business/prepay/follow`,params);
// 删除
export const prepayDeleteOne = id => get(`/business/prepay/deleteOne/${id}`);
// 分期扣款
export const signInstallment = params => post(`/business/sign/installment`,params);

// 审批提交
export const orderAudit = params => post(`/business/order/audit`,params);

// 代偿客户统计
export const getCompensatory = params => get(`/business/compensatory/page`,params);

// 代偿明细
export const getRepayInfo = params => get(`/business/compensatory/repayInfo`,params);
// 代偿明细合计
export const getCompensatoryTotal = id => get(`/business/compensatory/total/${id}`);
// 代偿结清
export const getRepaySettle = params => post(`/business/compensatory/repaySettle`,params);

// 换签信息
export const getAlterSignInfo = (id) => get(`/business/alterSign/info/${id}`);
// 申请解约
export const alterSignCancel = (data) => post(`/business/alterSign/cancel`,data);
// 发送链接
export const alterSignLink = (data) => post(`/business/alterSign/link`,data);

// 一键扣款银联/银盛
export const batchDeduct = (data) => post(`/business/sign/batchDeduct`,data);

// 检查是否签约过了
export const checkSign = (orderNumber) => get(`/sys/sign/checkSign/${orderNumber}`);

// 发起签约链接
export const sendSignLink = (id) => get(`/sys/sign/sendSignLink/${id}`);
// 查询签约过程
export const process = (id) => get(`/sys/sign/process/${id}`);
// 多通道解除签约
export const retract = (channel,id) => get(`/sys/sign/retract/${channel}/${id}`);
// 多通道解除签约
export const termination = (data) => post(`/sys/sign/termination`,data);
// 生成下一期
export const nextIssue = () => post(`/business/guaranteeStaging/nextIssue`);
// 上门外访
export const downLoadOnsite = (orderNumber) => get(`/business/contract/downLoadOnsite/${orderNumber}`);
// 添加费用信息
export const addExpenses = (data) => post(`/business/upForm/addExpenses`,data);
//标记已完成签约
export const markSignCompletion = (orderNumber) => put(`/business/order/markSignCompletion/${orderNumber}`);
//生成二维码
export const getQrCode = (data) => get(`/business/prepare/getQrCode`,data);
//获取其他支出
export const getOtherExpenses = (loanId) => get(`/business/compensatory/getOtherExpenses/${loanId}`);
//更新其他支出
export const updateOtherExpenses = (data) => post(`/business/compensatory/updateOtherExpenses`,data);
//添加数据
export const addRepayInfo = (data) => post(`/business/compensatory/addRepayInfo`,data);
//贷后小结
export const getSummary = () => get(`/business/compensatory/summary`);
//贷后列表
export const getPageByCriteria = (data) => get(`/business/compensatory/pageByCriteria`,data);
//根据角色id获取员工
export const findEmployeeByRole = (data) => get(`/sys/tbEmployee/findEmployeeByRole`,data);
//客户转移
export const compensatoryChange = (data) => put(`/business/compensatory/change`,data);
//贷后详情
export const getCompensatoryInfo = (data) => get(`/business/compensatory/info`,data);
//保理逾期
export const getOverdue = (data) => get(`/business/compensatory/overdue`,data);
//贷后详情代偿信息查询
export const getRepayInfoPage = (data) => get(`/business/repayInfo/page`,data);
//贷后跟进
export const loanFollowSave = (data) => post(`/business/loanFollow/save`,data);
//跟进历史
export const getLoanFollowPage = (data) => get(`/business/loanFollow/page`,data);
//标记异常
export const compensatoryMark = (orderNumber,repayRemark) => put(`/business/compensatory/mark?orderNumber=${orderNumber}&repayRemark=${repayRemark}`);
//查询转移记录
export const getFindRecords = (data) => get(`/business/loanTransfer/findRecords`,data);
//查询代偿申请还款表信息
export const getRepay = (data) => get(`/business/compensatory/getRepay`,data);
//下载代偿申请还款表信息
export const downloadRepayApplication = (data) => post(`/business/compensatory/downloadRepayApplication`,data);
//逾期处理意见
export const saveOpinion = (data) => post(`/business/compensatory/saveOpinion`,data);
//还款明细
export const getRepayDetailPage = (data) => get(`/business/repayTransfer/page`,data);
//费用明细
export const getRepayDetailDetails = (data) => get(`/business/repayDetail/details`,data);
//费用分配
export const repayDetailAllocate = (data) => post(`/business/repayTransfer/allocate`,data);
//明细列表
export const getRepayDetailRecords = (data) => get(`/business/repayTransfer/records`,data);

//融银贷《保理合同》下载
export const downloadNewRydLb = (data) => post(`/business/contract/downloadNewRydLb`,data);

//担保合同下载
export const downloadGuaranteeContract = (data) => post(`/business/contract/downloadGuaranteeContract`,data);

//修改下户状态
export const updateStatus = (data) => put(`/business/survey/updateStatus?sid=${data.sid}&status=${data.status}`);





